package com.hrm.pojo;

import java.io.Serializable;
import java.util.Date;

public class Document  implements Serializable {
    private Integer id;

    private String title;

    private String filename;

    private String remark;

    private Date createDate;

    private Users users;

    private String username;

    public String getUsername() {
        return username;
    }

    public void setUsername(String username) {
        this.username = username;
    }

    public Document(){
    }
    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public String getTitle() {
        return title;
    }

    public void setTitle(String title) {
        this.title = title == null ? null : title.trim();
    }

    public String getFilename() {
        return filename;
    }

    public Users getUsers() {
        return users;
    }

    public void setUsers(Users users) {
        this.users = users;
    }

    public void setFilename(String filename) {
        this.filename = filename == null ? null : filename.trim();
    }

    public String getRemark() {
        return remark;
    }

    public void setRemark(String remark) {
        this.remark = remark == null ? null : remark.trim();
    }

    public Date getCreateDate() {
        return createDate;
    }

    public void setCreateDate(Date createDate) {
        this.createDate = createDate;
    }

    public Document(Integer id, String title, String filename, String remark, Date createDate, Users users, String username) {
        this.id = id;
        this.title = title;
        this.filename = filename;
        this.remark = remark;
        this.createDate = createDate;
        this.users = users;
        this.username = username;
    }

    @Override
    public String toString() {
        return "Document{" +
                "id=" + id +
                ", title='" + title + '\'' +
                ", filename='" + filename + '\'' +
                ", remark='" + remark + '\'' +
                ", createDate=" + createDate +
                ", users=" + users +
                ", username='" + username + '\'' +
                '}';
    }
}